import java.util.Scanner;

public class Homework1 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		float[][] scores = new float[5][3];
		for (int i = 0; i < scores.length; i++) {
			System.out.println("请输入第" + (i + 1) + "名同学的3门课成绩");
			for (int j = 0; j < scores[i].length; j++) {
				System.out.print(" 请输入第" + (j + 1) + "门课的成绩");
				scores[i][j] = sc.nextFloat();

			}

		}
		float sum = 0.0F, avg = 0.0F, max = 0.0F, min = 0.0F;
		for (int i = 0; i < scores.length; i++) {
			sum = 0.0F;
			max = min = scores[i][0];
			for (int j = 0; j < scores[i].length; j++) {
				sum += scores[i][j];

				if (scores[i][j] > max) {
					max = scores[i][j];
				}
				if (scores[i][j] < min) {
					min = scores[i][j];
				}
			}
			avg = sum / scores[i].length;
			System.out.println("第" + (i + 1) + "个同学总分是" + sum);
			System.out.println("第" + (i + 1) + "个同学平均分" + avg);
			System.out.println("第" + (i + 1) + "个同学最高分" + max);
			System.out.println("第" + (i + 1) + "个同学最低分" + min);
			System.out.println("--------------------------------------------------");
		}

	}

}
